package com.woniu.petkonwledge.service.impl;

import com.woniu.common.entity.Study;
import com.woniu.petkonwledge.mapper.StudyMapper;
import com.woniu.petkonwledge.service.StudyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StudyServiceImpl implements StudyService {
    @Autowired
    StudyMapper studyMapper;

    @Override
    public void insertStudy(Study study) {
        studyMapper.insertStudy(study);
    }

    @Override
    public List<Study> getStudyByU_id(int u_id) {
        return studyMapper.getStudyByU_id(u_id);
    }
}
